Motor control apparatus

ABSTRACT

A motor control apparatus includes a sub-controller including a two-degree-of-freedom repetitive compensator and a shaping filter. The two-degree-of-freedom repetitive compensator includes a forward delay placed in a forward route of a loop and a feedback delay placed in a feedback route thereof and is configured so that a total delay time provided by the forward delay and the feedback delay is equal to the cycle of a target command or a disturbance. The shaping filter is configured so that the product of the pulse transfer function of the two-degree-of-freedom repetitive compensator and the complementary sensitivity function of a general-purpose control system has a low-pass characteristic.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation application of PCT/JP2010/054658, filed Mar. 18, 2010, which claims priority to Japanese Patent Application No. 2009-072655, filed Mar. 24, 2009. The contents of these applications are incorporated herein by reference in their entirety.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a motor control apparatus.

2. Discussion of the Background

As related art, for example, Japanese Unexamined Patent Application Publication No. 1-138662 discloses a control apparatus in which a low-pass filter is incorporated in a repetitive compensator in order to increase the stability of a control system, thus cutting high frequency components that cause a large phase delay in a delay and ensuring the stability of the control system.

SUMMARY OF THE INVENTION

According to one aspect of the present invention, a motor control apparatus includes a sub-controller configured to receive a first deviation, serving as the difference between a target command and a first control output from a control target, calculate a sub-compensation amount, and output the sub-compensation amount, a main controller configured to perform proportional control on the sum of the first deviation and the sub-compensation amount to obtain a first control command, perform proportional-integral control on a second deviation, serving as the difference between the first control command and a second control output from the control target, to obtain a second control command, and output the second control command to the control target, and a two-degree-of-freedom repetitive compensator including a positive feedback loop based on a total delay sampling number obtained by the sub-controller such that the cycle of the target command is divided by the control cycle of the sub-controller.

BRIEF DESCRIPTION OF THE DRAWINGS

A more complete appreciation of the invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:

FIG. 1 is a block diagram of a motor control apparatus according to an embodiment of the present invention;

FIG. 2 is a block diagram explaining the operation principle of a sub-controller in the motor control apparatus according to the embodiment;

FIG. 3 is a diagram illustrating vector loci of a control system in the motor control apparatus according to the embodiment; and

FIG. 4 is a diagram illustrating a simulation of a position deviation waveform in the motor control apparatus according to the embodiment.

DESCRIPTION OF THE EMBODIMENTS

Embodiments will now be described with reference to the accompanying drawings, wherein like reference numerals designate corresponding or identical elements throughout the various drawings.

FIG. 1 is a block diagram of a motor control apparatus according to an embodiment of the present invention.

The motor control apparatus operates so as to receive a target command (position command X_(r)) from a higher-level apparatus (not illustrated), receive control outputs (a motor position X_(M) and a motor velocity V_(M)) from a motor, serving as a control target (represented as a machine model 8), and a load in a feedback manner, and drive the control target.

The motor control apparatus includes a sub-controller 5 which receives a position deviation e_(x), serving as the deviation between the position command X_(r) and the motor position X_(M), and outputs an amount of sub-compensation (hereinafter, referred to as the “sub-compensation amount”) v₂, and a mechanism (main controller) which performs position proportional control on the sum of the position deviation e_(x) and the sub-compensation amount v₂ to obtain a velocity command V_(r) and performs velocity proportional-integral control on a velocity deviation, serving as the deviation between the velocity command V_(r) and the motor velocity V_(M), to obtain a torque command T_(r) and drives the control target on the basis of the torque command T_(r).

The main controller includes a position proportional (P) controller (hereinafter, referred to as the “P controller”) 6 performing position proportional control and a velocity proportional-integral (PI) controller (hereinafter, referred to as the “PI controller”) 7 performing velocity proportional-integral control.

The sub-controller 5 includes a two-degree-of-freedom repetitive compensator 1 and a shaping filter 4. The two-degree-of-freedom repetitive compensator 1 includes a positive feedback loop including a forward delay 2 in a forward route of the loop and a feedback delay 3 in a feedback route thereof, receives the position deviation e_(x), and outputs an amount of repetitive compensation (hereinafter, “repetitive compensation amount”) w₂.

The two-degree-of-freedom repetitive compensator 1 functions as the positive feedback loop including the forward delay 2 in the forward route of the loop and the feedback delay 3 in the feedback route thereof.

The shaping filter 4 is placed at an output stage of the two-degree-of-freedom repetitive compensator 1.

FIG. 2 is a block diagram explaining the operation principle of the sub-controller 5 in the motor control apparatus according to the present embodiment.

The motor control apparatus includes the sub-controller 5 and the main controller C(z), indicated at 9. The sub-controller 5 receives a deviation e, serving as the deviation between a target command r and a control output y, and outputs the sub-compensation amount v₂. The main controller C(z) 9 receives the sum of the deviation e and the sub-compensation amount v₂ and outputs a control command u. The motor control apparatus drives a control target P(z) 10.

The components designated by the same reference numerals as those in FIG. 1 have the same functional effects and detailed description thereof is omitted.

The main controller C(z) 9 corresponds to the P controller 6 and the PI controller 7 in FIG. 1. The control target P(z) 10 corresponds to the machine model 8. The target command r corresponds to the position command X_(r). The control output y corresponds to the motor position X_(M). The deviation e corresponds to the position deviation e_(x).

The operation principle of the sub-controller 5 in the motor control apparatus according to the present embodiment will be described below.

First, the main controller C(z) 9 is determined so that a control system has a stabile constant command response characteristic. A complementary sensitivity function T(z) in this case is given by Equation (1) including the main controller C(z) 9 and the control target P(z) 10.

$\begin{matrix} {{T(z)} = \frac{{P(z)}{C(z)}}{1 + {{P(z)}{C(z)}}}} & (1) \end{matrix}$

Subsequently, a parameter in the two-degree-of-freedom repetitive compensator 1 is determined.

When let T_(R) be the cycle of the target command r and let T_(s) denote the control cycle of the two-degree-of-freedom repetitive compensator 1, the total delay sampling number N of the two-degree-of-freedom repetitive compensator 1 is expressed by Equation (2).

N=T _(R) /T _(s)  (2)

When let the delay sampling number of the feedback delay 3 be m, m may be a natural number equal to or greater than the relative order, serving as the difference between the orders of the numerator and the denominator, (hereinafter, referred to as the “relative order of the numerator and denominator”) of the complementary sensitivity function T(z). The delay sampling number of the forward delay 2 is expressed as (N−m).

A pulse transfer function Q₂(z) from the deviation e between the target command r and the control output y to the repetitive compensation amount w₂, serving as an output of the two-degree-of-freedom repetitive compensator 1, is given by Equation (3).

$\begin{matrix} {{Q_{2}(z)} = {\frac{w_{2}(z)}{(z)} = \frac{z^{- {({N - m})}}}{1 - z^{- N}}}} & (3) \end{matrix}$

When z=e^(jωTs) is substituted into Equation (3) and the absolute values of both sides are obtained, Equation (4) is given.

$\begin{matrix} {{{Q_{2}\left( ^{{j\omega}\; T_{s}} \right)}} = {{\frac{^{{- {j{({N - m})}}}\omega \; T_{s}}}{1 - ^{{- j}\; N\; \omega \; T_{s}}}} = \frac{1}{{1 - ^{{- j}\; N\; \omega \; T_{s}}}}}} & (4) \end{matrix}$

Assuming that ω=nω₀ (n=0, 1, 2, . . . ) and ω₀=2π/T_(R), when ω, ω₀, and the total delay sampling number N of the two-degree-of-freedom repetitive compensator 1 expressed by Equation (2) are substituted into Equation (4), Equation (5) is given.

Equation (5) means that the two-degree-of-freedom repetitive compensator 1 functions as an internal model of the target command r having the cycle T_(R).

$\begin{matrix} {{{Q_{2}\left( ^{j\; n\; \omega_{0}T_{s}} \right)}} = {\frac{1}{{1 - ^{{- j}\; {Nn}\; \omega_{0}T_{s}}}} = {\frac{1}{{1 - ^{{- j}\; n\; 2\; \pi}}} = \infty}}} & (5) \end{matrix}$

Finally, the shaping filter H(z)4 is designed so that the whole of the control system is stabilized.

A pulse transfer function G₂(z) from the repetitive compensation amount w₂, serving as an output of the forward delay 2, to an input d₂ of the forward delay 2 is given by Equation (6) from the relationship with the complementary sensitivity function T(z) expressed by Equation (1).

$\begin{matrix} {{G_{2}(z)} = {\frac{d_{2}(z)}{w_{2}(z)} = {z^{- m} - {{H(z)}{T(z)}}}}} & (6) \end{matrix}$

On the basis of the small-gain theorem, a condition for stability of the control system is obtained when the vector locus of G₂(e^(jωTs)) in Equation (6) lies within a unit circle in a Nyquist diagram. In this case, a stability condition expressed by Equation (7) is satisfied.

|G ₂(e ^(jωT) ^(S) )|=|e ^(−jmωT) ^(S) −H(e ^(jωT) ^(S) )T(e ^(jωT) ^(S) )|<1, 0≦ω<2π/T_(S)  (7)

It is assumed that Equation (8) is satisfied in order to meet the stability condition expressed by Equation (7). Note that a_(i) and b_(i) (i=1, 2, . . . , m) are complex constants each having an absolute value equal to or less than 1.

$\begin{matrix} {{{H(z)}{T(z)}} = {\prod\limits_{i = 1}^{m}\; \frac{1 - b_{i}}{z - a_{i}}}} & (8) \end{matrix}$

When b_(i)=a_(i), the right side of Equation (8) indicates a kind of low-pass filter. The smaller the absolute value of a_(i), the higher the cut frequency of the filter.

Equation (9) is satisfied on the basis of Equations (8) and (7). Equation (9) means that a_(i) and b_(i) (i=1, 2, . . . , m) satisfying the stability condition expressed by Equation (7) absolutely exist in the vicinity of the origin of the Nyquist diagram.

$\begin{matrix} {{\lim\limits_{{\forall\; a_{i}},{b_{i}\rightarrow 0}}{{G_{2}\left( ^{j\; \omega \; T_{s}} \right)}}} = {{\lim\limits_{{\forall a_{i}},{b_{i}\rightarrow 0}}{{^{{- j}\; m\; \omega \; T_{s}} - {\prod\limits_{i = 1}^{m}\; \frac{1 - b_{i}}{^{j\; \omega \; T_{s}} - a_{i}}}}}} = 0}} & (9) \end{matrix}$

When the main controller C(z) 9 is determined, the shaping filter H(z)4 is expressed by Equation (10) on the basis of Equation (8) because the complementary sensitivity function T(z) is expressed by Equation (1).

$\begin{matrix} {{H(z)} = {\prod\limits_{i = 1}^{m}\; {\frac{1 - b_{i}}{z - a_{i}}/{T(z)}}}} & (10) \end{matrix}$

As described above, the delay sampling number m of the feedback delay 3 is a natural number equal to or greater than the relative order of the numerator and denominator of the complementary sensitivity function T(z). Since the shaping filter H(z) 4 is proper on the basis of Equation (10), therefore, the motor control apparatus can be mounted.

A concrete mounted example of the motor control apparatus according to the present embodiment will now be described.

For example, it is assumed in FIG. 1 that the proportional gain K_(p) of the PI controller 7 is 1257J (J denotes total inertia of a mechanical movable portion) and the integral gain K_(i) is 392700J, and the proportional gain K_(x) of the P controller 6 is 200. When the repetitive control cycle T_(s) of the two-degree-of-freedom repetitive compensator 1 is 2 ms, the complementary sensitivity function T(z) in the case where the sub-controller 5 does not exist is expressed by Equation (11) from the relationship with Equation (1).

$\begin{matrix} {{T(z)} = \frac{{0.2661\; z^{2}} - {0.002982\; z} - 0.07413}{z^{3} - {1.173\; z^{2}} + {0.44340\mspace{11mu} {.003}\; z} - 0.081}} & (11) \end{matrix}$

In Equation (11), since the relative order of the numerator and denominator of the complementary sensitivity function T(z) is 1, the delay sampling number m of the feedback delay 3 is set to 2.

When the cycle T_(R) of the position command X_(r) is, for example, 6 s, the total delay sampling number N of the two-degree-of-freedom repetitive compensator 1 is 3000 on the basis of Equation (2).

When the complex constants a_(i) and b_(i) (i=1, 2) are set such that a₁=b₁=0.3679 and a₂=b₂=−0.3679 in order to meet the stability condition expressed by Equation (7), a pulse transfer function G₂(z) from the output w₂ of the forward delay 2 to the input d₂ of the forward delay 2 is expressed by Equation (12) on the basis of Equations (6) and (8).

$\begin{matrix} {{G_{2}(z)} = {z^{- 2} - \frac{1 - 0.1354}{z^{2} - 0.1354}}} & (12) \end{matrix}$

FIG. 3 is a diagram illustrating vector loci of the control system in the motor control apparatus according to the present embodiment. Referring to FIG. 3, the vector locus of G₂(e^(jωTs)) lies within a unit circle in a Nyquist diagram and is also in the vicinity of the center of the unit circle. Accordingly, this means that this control system is stable and the stability margin is large.

FIG. 4 is a diagram illustrating a simulation of a position deviation waveform in the motor control apparatus according to the present embodiment. The resolution of a position sensor was set to 1 nm/pulse. In FIG. 4, the position deviation e_(x) was 2 nm or less after the fifth cycle (steady state).

It is clear from FIGS. 3 and 4 that the motor control apparatus according to the present embodiment provides good stability and excellent command following capability.

In the motor control apparatus according to the present embodiment, the total delay time NT_(S) of one cycle through the loop of the two-degree-of-freedom repetitive compensator is set to be equal to the cycle of a periodic disturbance, so that the two-degree-of-freedom repetitive compensator functions as an internal model of the disturbance. This effectively suppresses adverse effects of the disturbance and also stably suppresses the periodic disturbance effectively.

As described above, the motor control apparatus according to the present embodiment can allow the closed loop of the control system to have an inner model of a periodic signal and ensure the stability of the control system.

Furthermore, the motor control apparatus according to the present embodiment can provide effective following capability for a periodic target command or effective suppressing capability for a period disturbance.

Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein. 

1. A motor control apparatus comprising: a sub-controller configured to receive a first deviation, serving as the difference between a target command and a first control output from a control target, calculate a sub-compensation amount, and output the sub-compensation amount; a main controller configured to perform proportional control on the sum of the first deviation and the sub-compensation amount to obtain a first control command, perform proportional-integral control on a second deviation, serving as the difference between the first control command and a second control output from the control target, to obtain a second control command, and output the second control command to the control target; and a two-degree-of-freedom repetitive compensator including a positive feedback loop based on a total delay sampling number obtained by the sub-controller such that the cycle of the target command is divided by the control cycle of the sub-controller.
 2. The apparatus according to claim 1, wherein the two-degree-of-freedom repetitive compensator is an internal model of the target command, the model having the cycle of the target command.
 3. The apparatus according to claim 1, wherein the two-degree-of-freedom repetitive compensator includes a forward delay placed in a forward route of the positive feedback loop and a feedback delay placed in a feedback route thereof and receives the first deviation and calculates and outputs a repetitive compensation amount.
 4. The apparatus according to claim 3, wherein the delay sampling number of the feedback delay is a natural number equal to or greater than the relative order of the numerator and denominator of a complementary sensitivity function.
 5. The apparatus according to claim 3, wherein the delay sampling number of the forward delay is the difference between the total delay sampling number and the delay sampling number of the feedback delay.
 6. The apparatus according to claim 3, wherein a predetermined variable is determined so that the vector locus of a pulse transfer function from the repetitive compensation amount, serving as an output of the forward delay, to an input of the forward delay lies within a unit circle in a Nyquist diagram.
 7. A motor control apparatus comprising: a sub-controller configured to receive a position deviation, serving as the difference between a position command and a motor position from a control target, calculate a sub-compensation amount, and output the sub-compensation amount; a main controller configured to perform position proportional control on the sum of the position deviation and the sub-compensation amount to obtain a velocity command, perform velocity proportional-integral control on a velocity deviation, serving as the difference between the velocity command and a motor velocity from the control target, to obtain a torque command, and output the torque command to the control target; and a two-degree-of-freedom repetitive compensator including a positive feedback loop based on a total delay sampling number obtained by the sub-controller such that the cycle of the position command is divided by the control cycle of the sub-controller.
 8. The apparatus according to claim 7, wherein the two-degree-of-freedom repetitive compensator is an internal model of the position command, the model having the cycle of the position command.
 9. The apparatus according to claim 7, wherein the two-degree-of-freedom repetitive compensator includes a forward delay placed in a forward route of the positive feedback loop and a feedback delay placed in a feedback route thereof and receives the position deviation and calculates and outputs a repetitive compensation amount.
 10. The apparatus according to claim 9, wherein the delay sampling number of the feedback delay is a natural number equal to or greater than the relative order of the numerator and denominator of a complementary sensitivity function.
 11. The apparatus according to claim 9, wherein the delay sampling number of the forward delay is the difference between the total delay sampling number and the delay sampling number of the feedback delay.
 12. The apparatus according to claim 9, wherein a predetermined variable is determined so that the vector locus of a pulse transfer function from the repetitive compensation amount, serving as an output of the forward delay, to an input of the forward delay lies within a unit circle in a Nyquist diagram. 